'''
金融项目用户管理模块的接口
'''


def register(url, data, br):
    '''
    发送注册的请求，返回响应结果
    :param url:  环境地址
    :param data: 测试数据
    :param br: BaseRequests的实例
    :return: 响应
    '''
    url = url + "/futureloan/mvc/api/member/register"
    return br.post(url, data=data)

def login(url, data, br):
    #登录
    url = url + "/futureloan/mvc/api/member/login"
    return br.post(url, data=data)

def get(url, br):
    # 获取用户列表
    url = url + "/futureloan/mvc/api/member/list"
    return br.post(url)

def recharge(url, data, br):
    url = url + "/futureloan/mvc/api/member/recharge"
    return br.post(url, data=data)

def withdraw(url, data, br):
    url = url + "/futureloan/mvc/api/member/withdraw"
    return br.post(url, data=data)
